﻿// Self-Hosted WCF Service for Silverlight Template
// Created by Brice Wilson
// http://www.BriceWilson.net

using System.IO;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace SLServiceLibrary
{
    //用来实现Silverlight跨域访问WCF服务的REST服务接口
    [ServiceContract]
    public interface IClientAccessPolicy
    {
        [OperationContract, WebGet(UriTemplate = "/crossdomain.xml")]
        Stream GetCrossDomainPolicy();
        [OperationContract, WebGet(UriTemplate = "/clientaccesspolicy.xml")]
        Stream GetClientAccessPolicy();
    }
}
